package com.redepronik.negosys.invfac.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.redepronik.negosys.invfac.dao.PagoCreditoDao;
import com.redepronik.negosys.invfac.entity.Pagocredito;

@Service
public class PagoCreditoServiceImpl implements PagoCreditoService {

	@Autowired
	private PagoCreditoDao pagoCreditoDao;

	public String actualizar(Pagocredito pagocredito) {
		pagoCreditoDao.actualizar(pagocredito);
		return "SAVE";
	}

	public Pagocredito obtenerPorPagoCreditoId(Integer pagoCreditoId) {
		return pagoCreditoDao.obtenerPorId(Pagocredito.class, pagoCreditoId);
	}
}